package android.svgview;

import java.util.Observable;

public class ViewState extends Observable {

	private float _x;
	private float _y;
	private float _zoom;
	private float viewWidth;
	private float viewHeight;
	
	public void setViewSize(float width, float height){
		viewWidth = width;
		viewHeight = height;
	}
	
	public float getViewWidth(){
		return viewWidth;
	}
	
	public float getViewHeight(){
		return viewHeight;
	}
	
	public void setX(float x){
		_x = x;
		setChanged();
	}
	
	public void setY(float y){
		_y = y;
		setChanged();
	}
	
	public float getX(){
		return _x;
	}
	
	public float getY(){
		return _y;
	}
	
	public void setZoom(float zoom){
		_zoom = zoom;
		setChanged();
	}
	
	public float getZoom(){
		return _zoom;
	}
	
	public void resetZoom(){
		_zoom = 1;
	}
}
